'use strict';

module.exports = app => {
  class DepartmentController extends app.Controller {
    async init (ctx) {
      let initDepartment = new ctx.app.model.education.department({
        name: '默认院系'
      })

      initDepartment.save()

      ctx.body = ctx.helper.rest.resp({
        ctx,
        data: initDepartment
      })
    }
  }

  return DepartmentController
}
